package com.magical.ydyykfsy1;

import android.os.Bundle;
import android.view.View;
import android.widget.ImageButton;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;

import androidx.appcompat.app.AppCompatActivity;

public class MainActivity extends AppCompatActivity implements View.OnClickListener {
    private ImageButton btnPlay;
    private ImageView ivTitle;
    private ImageView gameview;
    private RelativeLayout rlTop;
    private LinearLayout llBottom;
    boolean isStarted = false;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        btnPlay = (ImageButton) findViewById(R.id.btn_main_play);
        btnPlay.setOnClickListener(this);
        ivTitle = (ImageView) findViewById(R.id.iv_main_title);
        rlTop = (RelativeLayout) findViewById(R.id.rl_main_top);
        llBottom = (LinearLayout) findViewById(R.id.ll_main_bottom);
        gameview = (ImageView) findViewById(R.id.img_gameview);
    }
    @Override
    public void onClick(View v) {
        switch (v.getId()) {
            case R.id.btn_main_play:
                btnPlay.setVisibility(View.GONE);
                ivTitle.setVisibility(View.GONE);
                rlTop.setVisibility(View.VISIBLE);
                llBottom.setVisibility(View.VISIBLE);
                gameview.setVisibility(View.VISIBLE);
                break;
        }
    }
}